Optimal. Leaf size=262 \[ -\frac {(6 b d-2 b f-3 a d f) x \sqrt {2+d x^2}}{3 d f \sqrt {3+f x^2}}+\frac {b x \sqrt {2+d x^2} \sqrt {3+f x^2}}{3 f}+\frac {\sqrt {2} (6 b d-2 b f-3 a d f) \sqrt {2+d x^2} E\left (\tan ^{-1}\left (\frac {\sqrt {f} x}{\sqrt {3}}\right )|1-\frac {3 d}{2 f}\right )}{3 d f^{3/2} \sqrt {\frac {2+d x^2}{3+f x^2}} \sqrt {3+f x^2}}-\frac {\sqrt {2} (b-a f) \sqrt {2+d x^2} F\left (\tan ^{-1}\left (\frac {\sqrt {f} x}{\sqrt {3}}\right )|1-\frac {3 d}{2 f}\right )}{f^{3/2} \sqrt {\frac {2+d x^2}{3+f x^2}} \sqrt {3+f x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.12, antiderivative size = 262, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {542, 545, 429,
506, 422} \begin {gather*} -\frac {\sqrt {2} \sqrt {d x^2+2} (b-a f) F\left (\text {ArcTan}\left (\frac {\sqrt {f} x}{\sqrt {3}}\right )|1-\frac {3 d}{2 f}\right )}{f^{3/2} \sqrt {f x^2+3} \sqrt {\frac {d x^2+2}{f x^2+3}}}+\frac {\sqrt {2} \sqrt {d x^2+2} (-3 a d f+6 b d-2 b f) E\left (\text {ArcTan}\left (\frac {\sqrt {f} x}{\sqrt {3}}\right )|1-\frac {3 d}{2 f}\right )}{3 d f^{3/2} \sqrt {f x^2+3} \sqrt {\frac {d x^2+2}{f x^2+3}}}-\frac {x \sqrt {d x^2+2} (-3 a d f+6 b d-2 b f)}{3 d f \sqrt {f x^2+3}}+\frac {b x \sqrt {d x^2+2} \sqrt {f x^2+3}}{3 f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 422
Rule 429
Rule 506
Rule 542
Rule 545
Rubi steps
\begin {align*} \int \frac {\left (a+b x^2\right ) \sqrt {2+d x^2}}{\sqrt {3+f x^2}} \, dx &=\frac {b x \sqrt {2+d x^2} \sqrt {3+f x^2}}{3 f}+\frac {\int \frac {-6 (b-a f)+(-6 b d+2 b f+3 a d f) x^2}{\sqrt {2+d x^2} \sqrt {3+f x^2}} \, dx}{3 f}\\ &=\frac {b x \sqrt {2+d x^2} \sqrt {3+f x^2}}{3 f}-\frac {(2 (b-a f)) \int \frac {1}{\sqrt {2+d x^2} \sqrt {3+f x^2}} \, dx}{f}-\frac {(6 b d-2 b f-3 a d f) \int \frac {x^2}{\sqrt {2+d x^2} \sqrt {3+f x^2}} \, dx}{3 f}\\ &=-\frac {(6 b d-2 b f-3 a d f) x \sqrt {2+d x^2}}{3 d f \sqrt {3+f x^2}}+\frac {b x \sqrt {2+d x^2} \sqrt {3+f x^2}}{3 f}-\frac {\sqrt {2} (b-a f) \sqrt {2+d x^2} F\left (\tan ^{-1}\left (\frac {\sqrt {f} x}{\sqrt {3}}\right )|1-\frac {3 d}{2 f}\right )}{f^{3/2} \sqrt {\frac {2+d x^2}{3+f x^2}} \sqrt {3+f x^2}}+\frac {(6 b d-2 b f-3 a d f) \int \frac {\sqrt {2+d x^2}}{\left (3+f x^2\right )^{3/2}} \, dx}{d f}\\ &=-\frac {(6 b d-2 b f-3 a d f) x \sqrt {2+d x^2}}{3 d f \sqrt {3+f x^2}}+\frac {b x \sqrt {2+d x^2} \sqrt {3+f x^2}}{3 f}+\frac {\sqrt {2} (6 b d-2 b f-3 a d f) \sqrt {2+d x^2} E\left (\tan ^{-1}\left (\frac {\sqrt {f} x}{\sqrt {3}}\right )|1-\frac {3 d}{2 f}\right )}{3 d f^{3/2} \sqrt {\frac {2+d x^2}{3+f x^2}} \sqrt {3+f x^2}}-\frac {\sqrt {2} (b-a f) \sqrt {2+d x^2} F\left (\tan ^{-1}\left (\frac {\sqrt {f} x}{\sqrt {3}}\right )|1-\frac {3 d}{2 f}\right )}{f^{3/2} \sqrt {\frac {2+d x^2}{3+f x^2}} \sqrt {3+f x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 1.25, size = 142, normalized size = 0.54 \begin {gather*} \frac {b \sqrt {d} f x \sqrt {2+d x^2} \sqrt {3+f x^2}+i \sqrt {3} (6 b d-2 b f-3 a d f) E\left (i \sinh ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {2}}\right )|\frac {2 f}{3 d}\right )+i \sqrt {3} (3 d-2 f) (-2 b+a f) F\left (i \sinh ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {2}}\right )|\frac {2 f}{3 d}\right )}{3 \sqrt {d} f^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.14, size = 367, normalized size = 1.40
method | result | size |
elliptic | \(\frac {\sqrt {\left (f \,x^{2}+3\right ) \left (d \,x^{2}+2\right )}\, \left (\frac {b x \sqrt {d f \,x^{4}+3 d \,x^{2}+2 f \,x^{2}+6}}{3 f}+\frac {\left (2 a -\frac {2 b}{f}\right ) \sqrt {3 f \,x^{2}+9}\, \sqrt {2 d \,x^{2}+4}\, \EllipticF \left (\frac {x \sqrt {-3 f}}{3}, \frac {\sqrt {-4+\frac {6 d +4 f}{f}}}{2}\right )}{2 \sqrt {-3 f}\, \sqrt {d f \,x^{4}+3 d \,x^{2}+2 f \,x^{2}+6}}-\frac {\left (a d +2 b -\frac {b \left (6 d +4 f \right )}{3 f}\right ) \sqrt {3 f \,x^{2}+9}\, \sqrt {2 d \,x^{2}+4}\, \left (\EllipticF \left (\frac {x \sqrt {-3 f}}{3}, \frac {\sqrt {-4+\frac {6 d +4 f}{f}}}{2}\right )-\EllipticE \left (\frac {x \sqrt {-3 f}}{3}, \frac {\sqrt {-4+\frac {6 d +4 f}{f}}}{2}\right )\right )}{\sqrt {-3 f}\, \sqrt {d f \,x^{4}+3 d \,x^{2}+2 f \,x^{2}+6}\, d}\right )}{\sqrt {f \,x^{2}+3}\, \sqrt {d \,x^{2}+2}}\) | \(282\) |
risch | \(\frac {b x \sqrt {d \,x^{2}+2}\, \sqrt {f \,x^{2}+3}}{3 f}+\frac {\left (-\frac {\left (3 a d f -6 b d +2 b f \right ) \sqrt {3 f \,x^{2}+9}\, \sqrt {2 d \,x^{2}+4}\, \left (\EllipticF \left (\frac {x \sqrt {-3 f}}{3}, \frac {\sqrt {-4+\frac {6 d +4 f}{f}}}{2}\right )-\EllipticE \left (\frac {x \sqrt {-3 f}}{3}, \frac {\sqrt {-4+\frac {6 d +4 f}{f}}}{2}\right )\right )}{\sqrt {-3 f}\, \sqrt {d f \,x^{4}+3 d \,x^{2}+2 f \,x^{2}+6}\, d}+\frac {3 a f \sqrt {3 f \,x^{2}+9}\, \sqrt {2 d \,x^{2}+4}\, \EllipticF \left (\frac {x \sqrt {-3 f}}{3}, \frac {\sqrt {-4+\frac {6 d +4 f}{f}}}{2}\right )}{\sqrt {-3 f}\, \sqrt {d f \,x^{4}+3 d \,x^{2}+2 f \,x^{2}+6}}-\frac {3 b \sqrt {3 f \,x^{2}+9}\, \sqrt {2 d \,x^{2}+4}\, \EllipticF \left (\frac {x \sqrt {-3 f}}{3}, \frac {\sqrt {-4+\frac {6 d +4 f}{f}}}{2}\right )}{\sqrt {-3 f}\, \sqrt {d f \,x^{4}+3 d \,x^{2}+2 f \,x^{2}+6}}\right ) \sqrt {\left (f \,x^{2}+3\right ) \left (d \,x^{2}+2\right )}}{3 f \sqrt {f \,x^{2}+3}\, \sqrt {d \,x^{2}+2}}\) | \(346\) |
default | \(\frac {\sqrt {d \,x^{2}+2}\, \sqrt {f \,x^{2}+3}\, \left (b \,d^{2} f \,x^{5} \sqrt {-f}+3 \sqrt {2}\, \EllipticE \left (\frac {x \sqrt {3}\, \sqrt {-f}}{3}, \frac {\sqrt {2}\, \sqrt {3}\, \sqrt {\frac {d}{f}}}{2}\right ) a d f \sqrt {d \,x^{2}+2}\, \sqrt {f \,x^{2}+3}+3 b \,d^{2} x^{3} \sqrt {-f}+2 b d f \,x^{3} \sqrt {-f}-6 \sqrt {2}\, \EllipticE \left (\frac {x \sqrt {3}\, \sqrt {-f}}{3}, \frac {\sqrt {2}\, \sqrt {3}\, \sqrt {\frac {d}{f}}}{2}\right ) b d \sqrt {d \,x^{2}+2}\, \sqrt {f \,x^{2}+3}+2 \sqrt {2}\, \EllipticE \left (\frac {x \sqrt {3}\, \sqrt {-f}}{3}, \frac {\sqrt {2}\, \sqrt {3}\, \sqrt {\frac {d}{f}}}{2}\right ) b f \sqrt {d \,x^{2}+2}\, \sqrt {f \,x^{2}+3}+3 \sqrt {2}\, \EllipticF \left (\frac {x \sqrt {3}\, \sqrt {-f}}{3}, \frac {\sqrt {2}\, \sqrt {3}\, \sqrt {\frac {d}{f}}}{2}\right ) b d \sqrt {d \,x^{2}+2}\, \sqrt {f \,x^{2}+3}-2 \sqrt {2}\, \EllipticF \left (\frac {x \sqrt {3}\, \sqrt {-f}}{3}, \frac {\sqrt {2}\, \sqrt {3}\, \sqrt {\frac {d}{f}}}{2}\right ) b f \sqrt {d \,x^{2}+2}\, \sqrt {f \,x^{2}+3}+6 b d x \sqrt {-f}\right )}{3 \left (d f \,x^{4}+3 d \,x^{2}+2 f \,x^{2}+6\right ) f \sqrt {-f}\, d}\) | \(367\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (a + b x^{2}\right ) \sqrt {d x^{2} + 2}}{\sqrt {f x^{2} + 3}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {\left (b\,x^2+a\right )\,\sqrt {d\,x^2+2}}{\sqrt {f\,x^2+3}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________